
layui.use('upload', function(){
    var $ = layui.jquery,upload = layui.upload;
    //上传护理计划表文件
    var uploadins=upload.render({
        elem: '#care_plan'
        ,url: '/toStaticDataImport/upload' //改成您自己的上传接口
        ,accept: 'file' //普通文件
        ,done: function(res){
            layer.msg('上传成功');
            console.log(res);
        }
    });

    //上传护理内容表文件
    upload.render({
        elem: '#care_content'
        ,url: '/toStaticDataImport/careContent/' //改成您自己的上传接口
        ,accept: 'file' //普通文件
        ,done: function(res){
            layer.msg('上传成功');
            console.log(res);
        }
    });

});





